import React from "react";
import { Route, Redirect } from "react-router-dom";
import Header from "./header/header";
import Wrapper from "./wrapper";

const RightContent = () => {
  return (
    <div>
      <Header />
      <Route exact path="/main" render={()=><Redirect to="/main/sub1-1" />} />
      <Route exact path="/main/:chart" component={Wrapper} />
    </div>
  );
};

export default RightContent;
